
function getRootPath() {
	var curWwwPath = window.document.location.href;
	var pathName = window.document.location.pathname;
	var url=curWwwPath.substring(0, curWwwPath.indexOf(pathName));
//	if(url.indexOf('localhost')>0){
//		return url+ pathName.substring(0, pathName.substr(1).indexOf('/') + 1); 
//	}
//	if(url.split(".").length==4){
//		return  url+ pathName.substring(0, pathName.substr(1).indexOf('/') + 1); 
//	}
	return url; 
}
/** 全局路径，代表当前网站的根URL */
var basePath = getRootPath();

var webSocketUrl = "ws://218.75.205.176:60607/websocket/web";

//var webSocketUrl = "ws://10.12.18.181:8686/websocket/web";

if(basePath.indexOf("10.12.18") != -1) {
	webSocketUrl = "ws://10.12.18.181:8686/websocket/web";
}